<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-elevatorFault-edit" th:object="${elevatorFault}">
            <input id="faultId" name="faultId" th:field="*{faultId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">关联电梯ID：</label>
				<div class="col-sm-8">
					<input id="elevatorId" name="elevatorId" th:field="*{elevatorId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">电梯名称：</label>
				<div class="col-sm-8">
					<input id="elevatorName" name="elevatorName" th:field="*{elevatorName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障单号：</label>
				<div class="col-sm-8">
					<input id="faultCode" name="faultCode" th:field="*{faultCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障类型：</label>
				<div class="col-sm-8">
					<input id="faultType" name="faultType" th:field="*{faultType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上报时间：</label>
				<div class="col-sm-8">
					<input id="reportTime" name="reportTime" th:field="*{reportTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">清除时间：</label>
				<div class="col-sm-8">
					<input id="removeTime" name="removeTime" th:field="*{removeTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障楼层：</label>
				<div class="col-sm-8">
					<input id="faultFloor" name="faultFloor" th:field="*{faultFloor}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理状态(0.待处理，1.已处理，2.自清除)：</label>
				<div class="col-sm-8">
					<input id="disposeState" name="disposeState" th:field="*{disposeState}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理人：</label>
				<div class="col-sm-8">
					<input id="disposeMan" name="disposeMan" th:field="*{disposeMan}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理时间：</label>
				<div class="col-sm-8">
					<input id="disposeDate" name="disposeDate" th:field="*{disposeDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">维修单号：</label>
				<div class="col-sm-8">
					<input id="repairOrder" name="repairOrder" th:field="*{repairOrder}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理意见：</label>
				<div class="col-sm-8">
					<input id="disposeOpin" name="disposeOpin" th:field="*{disposeOpin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障描述：</label>
				<div class="col-sm-8">
					<input id="faultMessage" name="faultMessage" th:field="*{faultMessage}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建者：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新者：</label>
				<div class="col-sm-8">
					<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "business/elevatorFault";
		$("#form-elevatorFault-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-elevatorFault-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
